package org.lql.shop.cloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: lql
 * @date: 2022/7/3 00:32
 * @description: 购物车表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@TableName(value = "shop_cart")
public class ShopCartEntity {

    @TableId(value = "cart_id", type = IdType.AUTO)
    private Long cartId;

    @TableField(value = "good_id")
    private Long goodId;

    @TableField(value = "good_name")
    private String goodName;

    @TableField(value = "good_num")
    private Long goodNum;

    @Version
    private Integer version;

}
